package org.backend.service;

import org.backend.pojo.entity.Address;
import org.backend.utils.ApiResponse;

import java.util.List;

public interface AddressService {
    String add(Address address);

    List<Address> getAddress(String openid, Integer userId);

    Address getAddressById(Integer id);

    ApiResponse<String> setDefaultAddress(Integer id);

    Address getDefaultAddress(String openid, Integer userId);
}
